#include "xViewPort.h"
#include "XRenderSystem.h"
#include "XEngine.h"
#include "xLogManager.h"
#include "xRenderTarget.h"


namespace XE	
{

	xViewPort::xViewPort(xCamera* pCamera,xRenderTarget* pTarget,float left, float top,float width,float height,\
		float minz,float maxz)
		:m_pCamera(pCamera),m_pRenderTarget(pTarget),m_left(left),m_top(top),m_width(width),m_height(height),
		m_minz(minz),m_maxz(maxz)
	{
		if(width==0)
		{
			m_width=1.0f;
		}
		if(height==0)
			m_height = 1.0f;


	}

}